$fontSize_14: 0.8vw;
$fontSize_16: 0.9vw;
$fontSize_18: 1vw;
$fontSize_22: 1.1vw;
$fontSize_24: 1.26vw;
$fontSize_28: 1.3vw;
$fontSize_32: 1.4vw;
$fontSize_36: 1.8vw;
$fontSize_40: 2.1vw;
$fontSize_48: 2.5vw;
$fontSize_50: 2.6vw;
$fontSize_54: 2.7vw;
$fontSize_64: 3.2vw;
$fontSize_70: 3.5vw;
$fontSize_90: 4.5vw;
$fontSize_100: 5vw;
$fontSize_200: 10vw;
$width: 82.292vw;

.home {
  position: relative;
  width: 100%;

  .section1 {
    width: 60vw;
    margin: 8vw auto 3vw auto;

    .t1 {
      color: #1C1917;
      font-size: $fontSize_22;
      font-weight: 700;
    }

    .t2 {
      color: #1C1917;
      font-size: $fontSize_40;
      font-weight: 600;
      line-height: 1.5;
      margin: 1.5vw 0;
    }

    .t3 {
      color: #333;
      font-size: $fontSize_22;
      line-height: 1.7;
    }

    .t4 {
      display: flex;
      align-items: center;
      margin: 1vw 0 3vw 0;

      p {
        color: #333;
        font-size: $fontSize_18;
        font-weight: 700;
      }

      a {
        color: #DA353B;
        font-size: $fontSize_18;

        &:hover {
          text-decoration: underline;
        }
      }
    }
  }

  .section2 {
    width: 100%;

    .pics {
      width: 100%;
      display: flex;
      justify-content: space-between;
      gap: 20px;
      margin-top: 20px;

      .pic {
        width: 20%;
        overflow: hidden;

        img {
          width: 100%;
          display: block;
          object-fit: cover;
          height: 12vw;
          border-radius: 10px;
          transition: all 600ms;
        }

        &:hover {
          img {
            transform: scale(1.05);
          }
        }
      }
    }
  }

  .section3 {
    background: #F7F7F7;
    padding: 5vw 10vw;

    .t {
      text-align: center;
      color: #333;
      font-size: $fontSize_36;
    }

    .allItems {
      width: 100%;
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;

      .item {
        width: 30%;
        display: flex;
        justify-content: space-between;
        margin-top: 4vw;

        .icon {
          width: 70px;
          height: 62px;
          display: flex;
          align-items: center;
          justify-content: center;
          transform: translateY(10px);
          img {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
          }
        }

        .text {
          width: calc(90% - 70px);

          .p1 {
            color: #DA353B;
            font-size: $fontSize_40;
          }

          .p2 {
            color: #333;
            font-size: $fontSize_22;
            margin-top: 1vw;
          }
        }
      }
    }
  }

  .section4 {
    background-color: white;
    padding: 5vw 8vw;

    .t {
      text-align: center;
      color: #333;
      font-size: $fontSize_36;
    }

    .allItems {
      width: 100%;
      display: flex;
      justify-content: space-between;
      flex-wrap: wrap;
      margin-top: 4vw;

      .item {
        width: calc(32% - 4vw);
        padding: 2vw;
        border-radius: 8px;
        transition: all 600ms;
        margin-bottom: 2vw;

        .icon {
          width: 58px;
          height: 58px;
          background-color: rgba(218, 53, 59, 0.10);
          border-radius: 50%;
          display: flex;
          align-items: center;
          justify-content: center;
          transition: all 600ms;

          svg {
            display: block;

            path {
              transition: all 600ms;
            }
          }
        }

        .p1 {
          color: #000;
          font-size: $fontSize_24;
          margin: 20px 0 15px 0;
          transition: all 600ms;
        }

        .des {
          color: #666;
          text-align: justify;
          font-size: $fontSize_18;
          line-height: 1.5;
          transition: all 600ms;
        }

        &:hover {
          background-color: rgba(218, 53, 59, 1);

          .icon {
            background-color: rgba(255, 255, 255, 0.10);
            ;

            svg {
              path {
                fill: white;
              }
            }
          }

          .p1,
          .des {
            color: white;
          }
        }
      }
    }
  }

  .section5 {
    background: #F7F7F7;
    padding: 5vw 10vw;

    .t {
      text-align: center;
      color: #333;
      font-size: $fontSize_36;
    }

    .allItems {
      margin-top: 3vw;

      .item {
        margin-bottom: 2vw;
        cursor: pointer;

        .d1 {
          display: flex;
          align-items: center;

          .q {
            width: 50px;
            height: 50px;
            border-radius: 6px;
            background: #DA353B;
            color: #FFF;
            font-size: $fontSize_32;
            display: flex;
            align-items: center;
            justify-content: center;
            font-family: 'Autumn';
          }

          .p1 {
            color: #333;
            font-size: $fontSize_22;
            font-weight: 700;
            margin: 0 20px;
          }

          .icon {
            transition: all 600ms;
          }
        }

        .d2 {
          display: none;

          .dc {
            margin-left: 70px;
            display: flex;
            margin-top: 1.5vw;

            .a {
              color: #DA353B;
              font-size: $fontSize_24;
              margin-top: 5px;
              font-family: 'ReemKufiFun-VariableFont_wght';
            }

            .des {
              color: #666;
              font-size: $fontSize_18;
              margin-left: 20px;
              line-height: 1.8;
            }
          }
        }
      }

      .active {
        .d1 {
          .icon {
            transform: rotate(180deg);

            svg {
              path {
                fill: #999;
              }
            }
          }
        }
      }
    }

    .more {
      color: #DA353B;
      font-size: $fontSize_18;
      cursor: pointer;
      width: fit-content;
      margin: 3vw auto 0 auto;
      &:hover{
        text-decoration: underline;
      }
    }
  }


  @media screen and (max-width: 1024px) {
    padding-top: 50px;
    .section1{
      width: 90%;
      .t1{
        font-size: 18px;
      }
      .t2{
        font-size: 20px;
      }
      .t3{
        font-size: 16px;
      }
      .t4{
        margin: 15px 0 30px 0;
        p,a{
          font-size: 14px;
        }
      }
    }
    .section2{
      .pics{
        gap: 5px;
        margin-top: 5px;
        .pic{
          img{
            border-radius: 5px;
          }
        }
      }
    }
    .section3{
      padding: 30px 5%;
      .t{
        font-size: 24px;
      }
      .allItems{
        .item{
          width: 100%;
          margin-top: 30px;
          .icon{
            width: 50px;
            height: 40px;
            transform: translateY(0);
          }
          .text{
            width:calc(95% - 50px);
            .p1{
              font-size: 18px;
            }
            .p2{
              font-size: 14px;
              margin-top: 10px;
            }
          }
        }
      }
    }
    .section4{
      padding: 30px 5%;
      .t{
        font-size: 24px;
      }
      .allItems{
        .item{
          width: 90%;
          padding: 20px 5%;
          .p1{
            font-size: 18px;
          }
          .des{
            font-size: 16px;
          }
        }
      }
    }
    .section5{
      padding: 30px 5%;
      .t{
        font-size: 24px;
      }
      .allItems{
        margin-top: 30px;
        .item{
          margin-bottom: 30px;
          .d1{
            .q{
              font-size: 18px;
              width: 30px;
              height: 30px;
            }
            .p1{
              font-size: 14px;
              width:calc(95% - 50px);
              margin: 0 10px;
            }
            .icon{
              svg{
                width: 15px;
              }
            }
          }
          .d2{
            .dc{
              margin-left: 40px;
              .a{
                font-size: 18px;
              }
              .des{
                font-size: 16px;
                margin-left: 10px;
              }
            }
          }
        }
      }
      .more{
        font-size: 16px;
      }
    }
  }
}